﻿/*
* ==============================================================================
*
* FileName: CompanyDto.cs
* Created: 2020/6/08 10:45:49
* Author: Meiam
* Description: 
*
* ==============================================================================
*/
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Meiam.System.Model.Dto
{

    /// <summary>
    /// MES数据对象
    /// </summary>
    public class OAInvoiceCreateDto : PageParm
    {

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "")]
        public string QueryText { get; set; }

    }


    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class OAInvoiceCreateRequestDto
    {
        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "application_code")]
        public string application_code { get; set; }
       
    }



    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class OA_InvoiceCreateRequestDto
    {
        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "requestName")]
        public string requestName { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "appId")]
        public string appId { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "userId")]
        public string userId { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "workflowId")]
        public string workflowId { get; set; }

        /// <summary>
        /// 描述 : 计划流水号ID 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "mainData")]
        public OA_mainDataRequestDto mainData { get; set; }

        /// <summary>
        /// 描述 : 计划流水号ID 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "detailData")]
        public OA_detailDataRequestDto detailData { get; set; }

    }


    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class OA_mainDataRequestDto
    {
        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sqrq")]
        public string sqrq { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sqr")]
        public string sqr { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "gh")]
        public string gh { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "bm")]
        public string bm { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "gys")]
        public string gys { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fkdw")]
        public string fkdw { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "lx")]
        public string lx { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fph")]
        public string fph { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "je")]
        public double je { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "bz")]
        public string bz { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "erpxtsfxdd")]
        public string erpxtsfxdd { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fyszsybzx")]
        public string fyszsybzx { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sfsdjfp")]
        public string sfsdjfp { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "gysdd")]
        public string gysdd { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "zffs")]
        public string zffs { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "jsfs")]
        public string jsfs { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "zy")]
        public string zy { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "tjrq")]
        public string tjrq { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "hjqj")]
        public string hjqj { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fprq")]
        public string fprq { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fyszqj")]
        public string fyszqj { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fysfyjt")]
        public string fysfyjt { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "gljtlc")]
        public string gljtlc { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "jjsx")]
        public string jjsx { get; set; }

    }

    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class OA_detailDataRequestDto
    {
        /// <summary>
        /// 描述 : 计划流水号ID 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "header")]
        public List<OA_detailData_dt2RequestDto>  formtable_main_367_dt2 { get; set; }

        /// <summary>
        /// 描述 : 计划流水号ID 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "header")]
        public List<OA_detailData_dt3RequestDto>  formtable_main_367_dt3 { get; set; }

    }


    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class OA_detailData_dt2RequestDto
    {
        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fyje")]
        public double fyje { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fygzbm")]
        public string fygzbm { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "zy")]
        public string zy { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "bmbh")]
        public string bmbh { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fygzbmfzr")]
        public string fygzbmfzr { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "km")]
        public string km { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sdm")]
        public string sdm { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "hjjsrq")]
        public string hjjsrq { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "se")]
        public string se { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sl")]
        public string sl { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "kmmc")]
        public string kmmc { get; set; }

    }


    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class OA_detailData_dt3RequestDto
    {
        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fph")]
        public string fph { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fplx")]
        public string fplx { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "kdkse")]
        public double kdkse { get; set; }


        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "bhsje")]
        public double bhsje { get; set; }
    
    }

    public class ApiResponse
    {
        public string msg { get; set; }
        public int resultCode { get; set; }
        public bool state { get; set; }
        public T00003 T00003 { get; set; }
        public string transactionId { get; set; }
    }

    public class T00003
    {
        public string msg { get; set; }
        public OA OA { get; set; }
        public int resultCode { get; set; }
        public bool state { get; set; }
        public string transactionId { get; set; }
    }

    public class OA
    {
        public string code { get; set; }
        public Data data { get; set; }
        public Dictionary<string, object> errMsg { get; set; }
        public ReqFailMsg reqFailMsg { get; set; }
    }

    public class Data
    {
        public int requestid { get; set; }
    }

    public class ReqFailMsg
    {
        public Dictionary<string, object> keyParameters { get; set; }
        public Dictionary<string, object> msgInfo { get; set; }
        public OtherParams otherParams { get; set; }
    }

    public class OtherParams
    {
        public string doAutoApprove { get; set; }
    }



    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class OAInvoiceCreateResponseDto
    {
        /// <summary>
        /// 描述 : 返回行状态 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "code")]
        public int code { get; set; }

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "message")]
        public string message { get; set; }

    }
}
